//package com.imay.live.view;
//
//import android.content.Context;
//import android.os.Build;
//import android.support.annotation.Nullable;
//import android.support.annotation.RequiresApi;
//import android.util.AttributeSet;
//import android.view.View;
//import android.widget.FrameLayout;
//import android.widget.LinearLayout;
//
//import com.imay.live.R;
//
///**
// * Created by Administrator on 2017/04/22 0022.
// */
//
//public class ScrLinearLayout extends LinearLayout {
//    public ScrLinearLayout(Context context) {
//        super(context);
//    }
//
//    public ScrLinearLayout(Context context, @Nullable AttributeSet attrs) {
//        super(context, attrs);
//    }
//
//    public ScrLinearLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
//        super(context, attrs, defStyleAttr);
//    }
//
//    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
//    public ScrLinearLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
//        super(context, attrs, defStyleAttr, defStyleRes);
//    }
//
//    @Override
//    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
//        int h = MeasureSpec.getSize(heightMeasureSpec);
//        int w = MeasureSpec.getSize(widthMeasureSpec);
//        setMeasuredDimension(w, h);
//        FrameLayout frameLayout = (FrameLayout) findViewById(R.id.fragment_id);
//        View tabview = findViewById(R.id.siv_discovery);
//        measureChild(tabview, MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(tabview.getLayoutParams().height, MeasureSpec.EXACTLY));
//        measureChild(frameLayout, MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(h - tabview.getLayoutParams().height, MeasureSpec.EXACTLY));
//    }
//}
